package hu.diploma.web.client.proxies;

import hu.diploma.web.client.service.WebContactServiceAsync;
import hu.diploma.web.shared.webvos.ContactWebVo;

import java.util.List;

import com.extjs.gxt.ui.client.data.LoadConfig;
import com.extjs.gxt.ui.client.data.RpcProxy;
import com.google.gwt.user.client.rpc.AsyncCallback;

public class ContactProxy extends RpcProxy<List<ContactWebVo>> {

	@Override
	protected void load(Object loadConfig, AsyncCallback<List<ContactWebVo>> callback) {
		Long deviceId = ((LoadConfig) loadConfig).get("deviceId");
		WebContactServiceAsync.Util.getInstance().loadAll(callback);

	}
}
